//
//  BaseModel.m
//  LANGirl
//
//  Created by 杨泓晔 on 16/3/7.
//  Copyright © 2016年 杨泓晔. All rights reserved.
//

#import "BaseModel.h"

@implementation BaseModel

- (instancetype)initWithDictionary:(NSDictionary *)dictionary{
    
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}

+ (instancetype)modelWithDictionary:(NSDictionary *)dictionary {

    return [[self alloc] initWithDictionary:dictionary];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {

    
}

@end
